<%@page import="com.zhiyou.bbs01.User"%>
<%@page import="com.zhiyou.bbs01.Title"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.zhiyou.bbs01.TitleDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户话题页</title>
<link rel="stylesheet" type="text/css" href="/bbs/css/title.css"/>
</head>
<body>
	<a href="/bbs/back_servlet"><font style="font-size: 24px;">返回</font></a>
	<%
		ArrayList<Title> list = (ArrayList<Title>)request.getSession().getAttribute("userTitle");
		User u = (User)request.getSession().getAttribute("clickUser");
	%>
	<div style="margin: auto;border: 0px solid blue;text-align: center;"><h2><%=u.getUname() %></h2></div>
	<table class="All_table">
		<% 	for (Title t : list ){ %>
				<tr>
					<th class="all_td_th"><a href="/bbs/showTitle_servlet?tid=<%=t.getTid() %>"> <%=t.getThead() %></a></th>
				</tr>
				<tr>
					<td class="all_td_th"><textarea disabled="disabled" class="text_content2" name="tcontent" required="required" rows="20" cols="80"><%=t.getTcontent() %></textarea></td>
				</tr>
			<% }%>
			</table>
</body>
</html>